// 引包
const express = require('express');
const multer = require('multer')
const upload = multer();
// 设置路由
const router = express.Router();

// 引入控制器
const controller = require('../controller/registerCtrl.js');
// 初始化创建班级页面
router.get('/register', controller.register);
//  添加图片
router.post('/postAddUpload', upload.single('feature'), controller.postAddUpload);
// 创建班级
router.post('/AddGrade', controller.AddGrade);

// 暴露 
module.exports = router;